import MsgConst from "../../../Common/MsgConst";
import IController from "../../../Interface/IController";

export default class LoginController extends IController {
    private static _instance: LoginController = null;

    public static get instance() {
        if (this._instance === null) {
            this._instance = new this();
        }
        return this._instance;
    }

    public onCtrlMessage(msgID: number, buf: any): void {
        let ret = null;
        switch (msgID) {
            case MsgConst.LOGIN:
                console.log("登录控制器", msgID, buf);
                ret = buf
                break;
        }
    }
}